package com.rao.entity.VO;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@JsonInclude(JsonInclude.Include.NON_NULL)
@Data
public class ScoreVO {
    @NotBlank(message = "请输入学生姓名")
    private String studentName;
    private Double score;

    @NotNull(message = "请输入start考试时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startExamDate;
    @NotNull(message = "请输入end考试时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endExamDate;

    private Date examDate;
    private String courseName;
}
